﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.WindowsAzure.StorageClient;
using Microsoft.WindowsAzure;
using System.Data.Services.Client;

namespace Microsoft.CloudSaver.Web.Infrastructure
{
    public class TableContext:TableServiceContext
    {
        public static string SettingsTable { get { return "Settings"; } }

        public TableContext(string conn,StorageCredentials cred):base(conn,cred)
        {

        }

        public IQueryable<SettingsItem> Settings
        {
            get
            {
                return this.CreateQuery<SettingsItem>(SettingsTable);
            }
        }

    }
}